package com.meitianhui.convenitenbuy.module.store.contract;

import com.meitianhui.convenitenbuy.base.BasePresenter;
import com.meitianhui.convenitenbuy.base.BaseView;
import com.meitianhui.convenitenbuy.main.model.bean.HyphenateInfo;
import com.meitianhui.convenitenbuy.module.store.model.ShopCarGoods;
import com.meitianhui.convenitenbuy.module.store.model.StoreDetailCount;
import com.meitianhui.convenitenbuy.module.store.model.StoreDetailInfo;
import com.meitianhui.convenitenbuy.module.store.model.StoreSelectedGood;
import com.meitianhui.convenitenbuy.module.store.model.StoreType;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/11/2.
 */

public interface StoreDetailContract {
    interface View extends BaseView<Presenter> {

        void getStoreDetailInfoSuccess(StoreDetailInfo data);

        void setBanner(List<String> data);

        void setService(List<StoreType> data,String desc);

        void getStoreSelectTypeSuccess(Map<String,String> data);

        void getStoreSelectedGoodSuccess(StoreSelectedGood data);

        void getStoreDetailCountSuccess(StoreDetailCount data);

        void operationCollectSuccess(String service);

        void getHyphenateInfoSuccess(HyphenateInfo data);

        void getEventData(int type,int num, List<ShopCarGoods> shopCarGoodsList);

        void onFail(int code,String msg);



    }

    interface Presenter extends BasePresenter {


        void getStoreDetailInfo(String storeId);

        void getStoreSelectedType(String storeId);

        void getStoreSelectedGood(String storeId,String categoryId);

        void getStoreDetailCount(String storeId);

        void operationCollect(String storeId,String service);

        void getHyphenateInfo(String storeId);

        void registerEvent();

        void callPhone(String phone);

    }
}
